package com.ruihang.ijkplaylib.widget;

import android.os.Message;

import tv.danmaku.ijk.media.player.IMediaPlayer;

/**
 * Created by rh008 on 2017/7/20.
 */

public interface IGPlayerScreenControll extends IGPlayBaseController,IMediaPlayer.OnInfoListener {

    int MODE_ALL=0;
    int MODE_NET=1;
    int MODE_BG=2;
    int MODE_SPEED=801;

    /**
     * 滑动的地方是否是操作声音的区域
     * @param x
     * @param screenWidth
     * @return
     */
    boolean isVolumeArea(float x, int screenWidth);
    void onBrightnessSlide(float persent);
    void onVolumeSlide(int i);

    /**
     * 播放区域横向滑动
     * @param delta
     * @param duration
     * @param pos
     */
    void onProgressSlide(long delta, long duration, long pos);

    void showStatus(String text);

    void onProgressChanged(boolean isShow);

    void onShowSome(int mode);
    void onSetSome(int mode, Message msg);
    void endGesture();

    /**
     * 是否有弹幕功能
     * @return
     */
    boolean hasBarrage();

    Message obtainMessage(int what);

}
